#!/usr/bin/env python3
"""
安装项目依赖脚本
"""
import subprocess
import sys

def install_dependencies():
    """安装项目依赖"""
    try:
        print("正在安装项目依赖...")
        subprocess.check_call([sys.executable, "-m", "pip", "install", "-r", "requirements.txt"])
        print("✅ 依赖安装完成！")
        print("\n现在可以运行以下命令启动服务:")
        print("python backend/main.py")
    except subprocess.CalledProcessError as e:
        print(f"❌ 依赖安装失败: {e}")
        sys.exit(1)

if __name__ == "__main__":
    install_dependencies()